refactor: replace DIconButton with DToolButton for calendar navigation#326
Conversation
1. Changed DIconButton to DToolButton for next/previous page buttons in calendar widget 2. Updated both implementation (.cpp) and header (.h) files 3. This change provides better visual consistency with the Deepin design system 4. DToolButton offers more styling options and better fits the calendar navigation use case refactor: 将日历导航按钮从DIconButton替换为DToolButton 1. 将日历组件中的下一页/上一页按钮从DIconButton改为DToolButton 2. 同时更新了实现文件(.cpp)和头文件(.h) 3. 此更改提供了与Deepin设计系统更好的视觉一致性 4. DToolButton提供更多样式选项,更适合日历导航的使用场景 pms:BUG-305191
Reviewer's GuideRefactor calendar widget navigation by replacing DIconButton with DToolButton, updating includes, member declarations, and instantiations to align with the Deepin design system and improve styling consistency. Class diagram for SidebarCalendarWidget navigation button refactorclassDiagram
class SidebarCalendarWidget {
QWidget* m_keyWidget
QGridLayout* m_keyLayout
QLabel* m_dateLabel
DToolButton* m_nextPage
DToolButton* m_previousPage
QList<SidebarCalendarKeyButton*> m_keyButtonList
int m_firstday
DateTitleWidget *m_dateTitleWidget
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review代码审查意见:
总体来说,这次代码修改看起来是合理的,但需要确保这一改动不会对整个系统产生负面影响,并且与设计规范保持一致。如果有其他相关的代码改动或者功能实现,建议一并审查以确保整体系统的稳定性和一致性。 |
There was a problem hiding this comment.
Hey @18202781743 - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
calendar widget
system
navigation use case
refactor: 将日历导航按钮从DIconButton替换为DToolButton
pms:BUG-305191
Summary by Sourcery
Enhancements: